/**
 * Copyright 2012 Balaji Thennarangam
 */

$(document).ready(function() {

	$(".submenu").hide();

	$("#main-menu li ").click(function() {
		$(".submenu").hide();
		var menuId = $(this).attr("id");
		var position = $(this).position();
		var submenuId = "#sub" + menuId;
		$(submenuId).css("top", position.top + 25);
		$(submenuId).css("left", position.left);
		$(submenuId).toggle("fold");

	});
});